package models

import "time"

const (
	UserActivityToBeReviewed = iota
	UserActivityAgree
	UserActivityRefuse
)

type OrganizationUserActivity struct {
	// 活动ID
	OrganizationActivityID uint                  `json:"organization_activity_id" gorm:"primary_key;AUTO_INCREMENT:false"`
	OrganizationActivity   *OrganizationActivity `json:"organization_activity"`

	// 社团
	Organization   *Organization `json:"organization"`
	OrganizationID uint          `json:"organization_id"`

	// 通过申请的 社团管理员
	OrganizationAdminID uint               `json:"organization_admin_id"`
	OrganizationAdmin   *OrganizationAdmin `json:"organization_admin"`

	UserID uint  `json:"user_id" gorm:"primary_key;AUTO_INCREMENT:false"`
	User   *User `json:"user"`

	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt *time.Time

	Status int `json:"status"`
}
